<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/7/30
 * Time: 10:25
 */

namespace app\admin\model;


use think\Model;

class GoodsComment extends Model
{
    public function goods(){
        return self::belongsTo("Goods","goods_id","id");
    }

    public function getImgAttr($value){
        return explode(",",$value);
    }
}